<?php
/**
 * phpCacheTag settings class
 *
 * @package phpCacheTag
 * @author Umkus
 */
class CacheTagSettings
{
	protected static $enabled = true;
	//update cache only
	protected $replace = false;

	protected $tagsVarName = '_resetTags';

	//$_GET key names
	protected $disableCacheGetKey = 'disablecache'; //disables cache for current page load
	protected $resetCacheGetKey = 'resetcache'; //rewrites cache for current page load

	protected $timeout = 30; //Default ttl in minutes

	protected $dontDelete = true; //Should we just update info about the cache without actually deleting the value? May become handy when every cache hit counts.

	protected $debug = true; //Output info about what is being done

	//Project specific stuff

	//Tags - Doesn't matter what you assign those to, just keep them unique.
	const TAG_PRODUCT = 'product';
	const TAG_NEWS = 'news';

	//Params - Same here.
	const PARAM_USER = 'user';
	const PARAM_PAGINATION_PAGE = 'page';
	const PARAM_ID = 'id';

	//Cache engines
	const BACKEND_MEMCACHE = 'Memcache';
  const BACKEND_SQLITECACHE = 'Sqlitecache';
}